import type { DriverDetail } from '@/types/api'

interface FetchDriverDetailAPIResData {
  code: number
  msg: string
  time: string
  data: DriverDetail
}

export function fetchDriverDetailAPI(token: string) {
  return httpInstance.get<FetchDriverDetailAPIResData>(
    '/api/driver/myDriver',
    { headers: { token } },
  )
}
